home *** CD-ROM | disk | FTP | other *** search
- Path: ccn.cs.dal.ca!aa254
- From: aa254@ccn.cs.dal.ca (Bill Fraser)
- Newsgroups: comp.lang.c
- Subject: Another What does this do...
- Date: 18 Mar 1996 12:27:29 GMT
- Organization: Chebucto Community Net
- Message-ID: <4ijkrh$8t@apollo.isisnet.com>
- NNTP-Posting-Host: ccn.cs.dal.ca
- X-Newsreader: TIN [version 1.2 PL2]
-
- Hi! I've been trying mot of the weekend to make sense of Microsoft's
- program to read Rich Text Formatted files. I got it from their site
- with the V1.4 rtf documentation and am hoping to adapt it to be able
- to extract text and attributes for displaying word processor text on
- character based color terminals ( color, bold, blink, inverse video ).
-
- Asside from never having programmed in C before, I figured I was doing
- quite well until I came across the following statement:
-
- pb = (char *)&dop;
-
- where pb and dop are defined as:
- char *pb;
- and
- dop is structure DOP like this:
-
- typedef struct doc_prop
- {
- int xaPage;
- ...
- char flandscape;
- } DOP;
-
- I have searched The Waite Group's C PRIMER PLUS with no
- luck and lots of frustration - hell of a way to learn ( to
- hate ) C!
-
- Can anyone shed some light on this? If more info is needed
- please spell it out - I may not know what you are referring
- to! So sorry :(
-
- Thanks for the assistance.
- bill
- alter ego: bill.fraser@nspower.ns.ca
- --
-